<%--
 *  @Author: Kevinfan
 *  Date:    2010/12/23
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  //init param
  Category cat = Category.getInstance("jsp.Job");
  String strModuleName = "ERM";
  String privilegeCode = "10340";
  String contextPath = request.getContextPath();
  HashMap userinfo = (HashMap)session.getAttribute("userinfo");
%>
<% //--------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>

<html>
<head>
<title>DoctorEdit</title>
<PageFlow:CheckPageFlow pageName="p_doctoredit"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/Calendar.js"></script>
<script language="JavaScript">

function page_back(){
	parent.location.href="DoctorSummary.jsp?<%= OvalTools.randomURL()%>";
}

</script>
</head>
<iframe name="reloadHandler" style="display:none" ></iframe>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="summary_top"></td>
  </tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" >
<form name="cform" method="post" action="/oval/Dispatcher" target="_self">
<input type="hidden" name="pagename" value="p_doctoredit">
<input type="hidden" name="actionname" value="">
<custom:hidden name="doctorinfo" property="doctorid"/>
  <tr> 
    <td valign="top"> 
        <table border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="1">
          <tr> 
            <td class="need" width="20%"><%= label.getLabelName("L_Departments") + label.getLabelName("L_Colon") %></td>
            <td width="30%">
            	<custom:write name="doctorinfo" dictType="HospitalDepartment" property="department" nbsp="true"/>
            </td>
            <td class="need" width="20%"><%= label.getLabelName("L_ProfessionalTitle") + label.getLabelName("L_Colon") %></td>
            <td width="30%">
            	<custom:write name="doctorinfo" dictType="DoctorJobGrade" property="jobgrade" nbsp="true"/>
            </td>
          </tr>
          <tr>
            <td class="td-text" ><%= label.getLabelName("L_AdministrativeRank") + label.getLabelName("L_Colon") %></td>
            <td>
				<custom:write name="doctorinfo" dictType="DoctorJobTitle" property="jobtitle" nbsp="true"/>
			</td>
            <td class="need"><%= label.getLabelName("L_BelongHospital") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:write property="hospitalname" name="doctorinfo" nbsp="true"/>
            </td>
          </tr>
          <tr>
			<td class="td-text"><%= label.getLabelName("L_DoctorClinicNum") + label.getLabelName("L_Colon") %></td>
            <td><custom:write property="interest" name="doctorinfo" nbsp="true"/></td>
            <td class="td-text"><%= label.getLabelName("L_SickbedNum") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:write property="sickbed" name="doctorinfo" nbsp="true"/>
            </td>
          </tr>
          <tr>
            <td class="td-text"><%= label.getLabelName("L_SickbedTurnoverRate") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:write property="bedturnoverrate" name="doctorinfo" nbsp="true"/>
            </td>
            <td class="td-text"><%= label.getLabelName("L_IsOrNotManager") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:write name="doctorinfo" dictType="YesOrNo" property="ismanagementstaff"  nbsp="true"/>
		    </td>
          </tr>
          <tr>
          	<td class="td-text"><%= label.getLabelName("L_ClinicTime") + label.getLabelName("L_Colon") %></td>
          	<td>
          		<custom:write property="consultingtime" name="doctorinfo" nbsp="true"/>
            </td>
			<td class="td-text">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>
      </td>
  </tr>
  <tr>
    <td class="summary_top"></td>
  </tr>
  <tr> 
	<td height="49" class="td_center">
		 <a onclick="page_back()"><custom:button type="1" label="L_Back" imgsrc="finish.gif" border="0" style="width:60"/></a>
	</td>
  </tr>
</form>
</table>
</body>
</html>